StoreEngine\Addons\Stripe\GatewayStripe C

Total Complexity 120
Dependencies 19
Dependents 4
Total lines 988
Lines of code 550
Logical lines of code 276
Comment lines 160
Methods 24
Properties 3

Methods 24

Method Rating Maintainability Complexity Lines of code
process_payment()
C
28
27 120
payment_fields()
A
42 12 52
is_available()
A
51 13 25
add_payment_method()
A
44 10 41
process_refund()
A
49 9 30
verify_config()
A
45 7 43
get_source_object_from_request()
A
53 8 22
maybe_update_source_on_subscription_order()
S
54 6 21
maybe_attach_source_to_customer()
S
60 5 13
init_admin_fields()
S
42 1 63
save_payment_method()
S
65 4 9
save_payment_method_checkbox()
S
62 3 11
update_stripe_payment_source()
S
55 2 21
setup()
S
53 1 24
get_user_from_order()
S
69 2 7
filter_saved_payment_methods_list()
S
72 2 6
create_payment_token_for_user()
S
60 1 13
get_source_object()
S
80 1 3
__construct()
S
64 1 9
update_payment_token()
S
74 1 5
handle_webhook_setup()
S
91 1 2
get_stripe_customer_from_order()
S
75 1 4
is_currency_supported()
S
79 1 3
is_payment_needed()
S
79 1 3